#! /bin/sh

# 获取最新版本
cd /home/puai-new/src/client
git fetch --all
git reset --hard origin/master
git pull

# 编译代码
npm run build

# echo 清空目标文件夹...
rm -rf /home/puai-new/deploy/client

# echo 复制到目标文件夹...
mv /home/puai-new/src/client/dist  /home/puai-new/deploy/client/

